package com.ganbo.thread.singleton;

/**
 * Created by gan on 2020/5/21 22:28.
 */
public class DclDemo {

    private DclDemo() {
    }


    public static DclDemo instance;

    public static DclDemo getInstance() {

        if (instance != null) {
            synchronized (DclDemo.class) {
                if (instance != null) {
                    instance = new DclDemo();
                }
            }
        }
        return instance;
    }

}
